/*    */ package nc.vo.ic.pub.pf.billtype;
/*    */ 
/*    */ import java.util.HashMap;
/*    */ import java.util.List;
/*    */ import java.util.Map;
/*    */ import nc.jdbc.framework.SQLParameter;
/*    */ import nc.jdbc.framework.processor.BeanListProcessor;
/*    */ import nc.ui.dbcache.DBCacheQueryFacade;
/*    */ import nc.vo.ic.pub.cache.AbstractGetValue;
/*    */ import nc.vo.pub.billtype.BilltypeVO;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ class BillTypeQueryByPk
/*    */   extends AbstractGetValue<String, BilltypeVO>
/*    */ {
/* 24 */   public Map<String, BilltypeVO> getValues(List<String> conds) { return fetchBillTypeByDBCache(conds); }
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   private Map<String, BilltypeVO> fetchBillTypeByDBCache(List<String> conds) {
/* 30 */     StringBuilder sql = new StringBuilder(" select ");
/* 31 */     sql.append(" pk_billtypeid, pk_billtypecode, nodecode, systemcode, parentbilltype")
/* 32 */       .append(" from ")
/* 33 */       .append((new BilltypeVO()).getTableName())
/* 34 */       .append(" where pk_billtypeid = ? ");
/* 35 */     SQLParameter param = new SQLParameter();
/* 36 */     for (String temp : conds) {
/* 37 */       param.addParam(temp);
/*    */     }
/*    */ 
/*    */ 
/*    */     
/* 42 */     List<BilltypeVO> billTypeVOs = (List)DBCacheQueryFacade.runQuery(sql.toString(), param, new BeanListProcessor(BilltypeVO.class));
/*    */     
/* 44 */     Map<String, BilltypeVO> retMap = new HashMap<String, BilltypeVO>();
/* 45 */     for (BilltypeVO type : billTypeVOs) {
/* 46 */       retMap.put(type.getPk_billtypeid(), type);
/*    */     }
/* 48 */     return retMap;
/*    */   }
/*    */ }


/* Location:              E:\zhuhai_ncc\NCC2111\modules\ic\lib\pubic_pub.jar!/nc/vo/ic/pub/pf/billtype/BillTypeQueryByPk.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.0.7
 */